package com.example.script.admin.enums;

import com.example.script.common.api.IErrorCode;

/**
 * @author CuiZhaolong
 * @DATE 2022/2/28
 */
public enum ChooseScriptResult implements IErrorCode {
    CHOOSE_SCRIPT_ING(0,"注册失败,用户名重复"),
    CHOOSE_SCRIPT_SUCCESS(1,"注册成功"),
    CHOOSE_SCRIPT_FAILED(2,"注册失败"),
    CHOOSE_CODE_F(3,"状态码错误");
    private long code;
    private String message;

    ChooseScriptResult(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
